< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03120310.xhp

(section: ucase) (bookmark: bm_id3153527)
UCase function

UCase 関数

UCase Function [Runtime]
UCase 関数 [実行時](hd_id3153527.1)

Converts lowercase characters in a string to uppercase.
文字列中のすべての小文字を大文字に変換します。(par_id3155420.2)

(/section: ucase)

See also: LCase Function
次も参照してください:LCase 関数(par_id3150771.3)

Syntax:
構文:(par_id3149233.4)

UCase (Text As String)
UCase (Text As String)(par_id3153061.5)

Return value:
戻り値:(par_id3159414.6)

String
文字列(par_id3146795.7)

Parameters:
パラメータ:(hd_id3149457.8)

Text: Any string expression that you want to convert.
Text: 変換する文字列表式。(par_id3150791.9)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

Example:
例:(hd_id3154125.10)

Sub ExampleLUCase
Sub ExampleLUCase(par_id3147229.11)

Dim sVar As String
Dim sVar As String(par_id3151381.12)

sVar = "Las Vegas"
sVar = "Las Vegas"(par_id3153194.13)

Print LCase(sVar) REM returns "las vegas"
Print LCase(sVar) REM 戻り値は「las vegas」(par_id3149204.14)

Print UCase(sVar) REM returns "LAS VEGAS"
Print UCase(sVar) REM 戻り値は「LAS VEGAS」(par_id3156280.15)

end Sub
end Sub(par_id3156422.16)


< Prev / Next >